<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
   <button @click="fn('hello')">点我</button>



</div>

</body>
<script src="../node_modules/vue/dist/vue.js"></script>
<script>
   let vm =  new Vue({
        el: '#app',
        methods:{
            fn(value){
                console.log(this,value)
            }
        }
    })


</script>
</html>